/*
 * Module 02
 *
 */

package ua.gl.basecamp.tabachnyy.testcase;

/**
 * @author yaroslav.tabachnyy@gmail.com
 * @version 1.02
 * @date 14.02.2013
 *
 */
public class UserAnswer extends Answer {
    public UserAnswer(String stringRepresentation) {
        super(stringRepresentation);
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null)
            return false;
        if (obj == this)
            return true;
        if (!(obj instanceof Answer))
            return false;

        Answer answer = (Answer) obj;
        return (getStringRepresentation().equals(answer.getStringRepresentation()));
    }
}
